package org.example;

import com.ql.util.express.DefaultContext;
import com.ql.util.express.ExpressRunner;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws Exception {
        System.out.println("Hello world!");
        ExpressRunner runner = new ExpressRunner();
        DefaultContext<String, Object> context = new DefaultContext<String, Object>();
        RepayPlan rp = RepayPlan.builder().overdueDay(89).build();
        context.put("beginRepayPlans",new ArrayList(){{this.add(rp);}});
        String express = "beginRepayPlans != null && beginRepayPlans.size() > 0 && beginRepayPlans.get(0).getOverdueDay() >= 90";
        Object r = runner.execute(express, context, null, true, false);
        System.out.println(r);
    }
}